package com.kitty.game.haoxinzhi.message;

import com.kitty.game.haoxinzhi.model.HaoXinZhiShop;
import com.kitty.mina.annotation.MessageMeta;
import com.kitty.mina.message.Message;

import java.util.List;

@MessageMeta(
   module = 40967,
   cmd = 2
)
public class RespHaoXinZhiShop extends Message {
   private byte type;
   private List<HaoXinZhiShop> list;

   public byte getType() {
      return this.type;
   }

   public List<HaoXinZhiShop> getList() {
      return this.list;
   }

   public void setType(byte type) {
      this.type = type;
   }

   public void setList(List<HaoXinZhiShop> list) {
      this.list = list;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof RespHaoXinZhiShop)) {
         return false;
      } else {
         RespHaoXinZhiShop other = (RespHaoXinZhiShop)o;
         if (!other.canEqual(this)) {
            return false;
         } else if (this.getType() != other.getType()) {
            return false;
         } else {
            Object this$list = this.getList();
            Object other$list = other.getList();
            if (this$list == null) {
               if (other$list != null) {
                  return false;
               }
            } else if (!this$list.equals(other$list)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof RespHaoXinZhiShop;
   }

   public int hashCode() {
      boolean PRIME = true;
      int result = 1;
      result = result * 59 + this.getType();
      Object $list = this.getList();
      result = result * 59 + ($list == null ? 43 : $list.hashCode());
      return result;
   }

   public String toString() {
      return "RespHaoXinZhiShop(type=" + this.getType() + ", list=" + this.getList() + ")";
   }
}
